<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			/* p:nth-child(even){ */
				/* color: red; */
			/* } */
			/* P:nth-child(odd){color: palevioletred;} */
			p:nth-of-type(3n+1){color: salmon;}
		</style>
		
	</head>
	<body>
		<!--
			单词：even(偶数), odd(奇数)
			 p:nth-child(单词){
				color: red;
			} 
			p:nth-of-type(单词){
				color: red;
			} 
			p:nth-child(xn+y){
				
			}
			x,y自定，n:计数器 0,1,2...	
			
			p:nth-child(xn+y){
				}
			p:nth-of-type(xn+y)
			 -->
		 <p>我是段落1</p>
			<h1>标题</h1>
			<p>我是段落2</p>
			<p>我是段落3</p>
			<p>我是段落4</p>
			<h1>标题</h1>
			<p>我是段落5</p>
			<h1>标题</h1>
			<p>我是段落6</p>
			<p>我是段落7</p>
			<p>我是段落8</p>
</body>
</html>
